home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 57 68 | 79 20 58 42 52 41 3c 2f |ts of Wh|y XBRA</|
|000000b0| 54 49 54 4c 45 3e 0a 0a | 3c 4d 45 54 41 20 48 54 |TITLE>..|<META HT|
|000000c0| 54 50 2d 45 51 55 49 56 | 3d 22 43 6f 6e 74 65 6e |TP-EQUIV|="Conten|
|000000d0| 74 2d 54 79 70 65 22 20 | 43 4f 4e 54 45 4e 54 3d |t-Type" |CONTENT=|
|000000e0| 22 74 65 78 74 2f 68 74 | 6d 6c 3b 20 63 68 61 72 |"text/ht|ml; char|
|000000f0| 73 65 74 3d 75 74 66 2d | 38 22 3e 0a 3c 4d 45 54 |set=utf-|8">.<MET|
|00000100| 41 20 4e 41 4d 45 3d 22 | 76 69 65 77 70 6f 72 74 |A NAME="|viewport|
|00000110| 22 20 43 4f 4e 54 45 4e | 54 3d 22 77 69 64 74 68 |" CONTEN|T="width|
|00000120| 3d 64 65 76 69 63 65 2d | 77 69 64 74 68 2c 20 69 |=device-|width, i|
|00000130| 6e 69 74 69 61 6c 2d 73 | 63 61 6c 65 3d 31 2e 30 |nitial-s|cale=1.0|
|00000140| 22 3e 0a 3c 4d 45 54 41 | 20 4e 41 4d 45 3d 22 47 |">.<META| NAME="G|
|00000150| 65 6e 65 72 61 74 6f 72 | 22 20 43 4f 4e 54 45 4e |enerator|" CONTEN|
|00000160| 54 3d 22 4c 61 54 65 58 | 32 48 54 4d 4c 20 76 32 |T="LaTeX|2HTML v2|
|00000170| 30 32 32 22 3e 0a 0a 3c | 4c 49 4e 4b 20 52 45 4c |022">..<|LINK REL|
|00000180| 3d 22 53 54 59 4c 45 53 | 48 45 45 54 22 20 48 52 |="STYLES|HEET" HR|
|00000190| 45 46 3d 22 78 62 72 61 | 2e 63 73 73 22 3e 0a 0a |EF="xbra|.css">..|
|000001a0| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 6e 65 78 74 22 |<LINK RE|L="next"|
|000001b0| 20 48 52 45 46 3d 22 6e | 6f 64 65 34 5f 6d 6e 2e | HREF="n|ode4_mn.|
|000001c0| 68 74 6d 6c 22 3e 0a 3c | 4c 49 4e 4b 20 52 45 4c |html">.<|LINK REL|
|000001d0| 3d 22 70 72 65 76 69 6f | 75 73 22 20 48 52 45 46 |="previo|us" HREF|
|000001e0| 3d 22 6e 6f 64 65 32 5f | 6d 6e 2e 68 74 6d 6c 22 |="node2_|mn.html"|
|000001f0| 3e 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 75 70 22 |>.<LINK |REL="up"|
|00000200| 20 48 52 45 46 3d 22 78 | 62 72 61 5f 6d 6e 2e 68 | HREF="x|bra_mn.h|
|00000210| 74 6d 6c 22 3e 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |tml">.<L|INK REL=|
|00000220| 22 6e 65 78 74 22 20 48 | 52 45 46 3d 22 6e 6f 64 |"next" H|REF="nod|
|00000230| 65 34 5f 6d 6e 2e 68 74 | 6d 6c 22 3e 0a 3c 2f 48 |e4_mn.ht|ml">.</H|
|00000240| 45 41 44 3e 0a 20 0a 3c | 42 4f 44 59 20 62 67 63 |EAD>. .<|BODY bgc|
|00000250| 6f 6c 6f 72 3d 22 23 66 | 66 66 66 66 66 22 20 74 |olor="#f|fffff" t|
|00000260| 65 78 74 3d 22 23 30 30 | 30 30 30 30 22 20 6c 69 |ext="#00|0000" li|
|00000270| 6e 6b 3d 22 23 39 39 34 | 34 45 45 22 20 76 6c 69 |nk="#994|4EE" vli|
|00000280| 6e 6b 3d 22 23 30 30 30 | 30 66 66 22 20 61 6c 69 |nk="#000|0ff" ali|
|00000290| 6e 6b 3d 22 23 30 30 66 | 66 30 30 22 3e 0a 0a 3c |nk="#00f|f00">..<|
|000002a0| 48 31 3e 3c 41 20 49 44 | 3d 22 53 45 43 54 49 4f |H1><A ID|="SECTIO|
|000002b0| 4e 30 30 30 33 30 30 30 | 30 30 30 30 30 30 30 30 |N0003000|00000000|
|000002c0| 30 30 30 30 30 22 3e 0a | 57 68 79 20 58 42 52 41 |00000">.|Why XBRA|
|000002d0| 3c 2f 41 3e 0a 3c 2f 48 | 31 3e 0a 4f 6e 20 74 68 |</A>.</H|1>.On th|
|000002e0| 65 20 36 38 4b 20 61 72 | 63 68 69 74 65 63 74 75 |e 68K ar|chitectu|
|000002f0| 72 65 2c 20 77 68 65 6e | 65 76 65 72 20 61 6e 20 |re, when|ever an |
|00000300| 65 78 63 65 70 74 69 6f | 6e 20 6f 63 63 75 72 73 |exceptio|n occurs|
|00000310| 2c 20 74 68 65 20 63 75 | 72 72 65 6e 74 0a 70 72 |, the cu|rrent.pr|
|00000320| 6f 63 65 73 73 6f 72 20 | 73 74 61 74 65 3c 41 20 |ocessor |state<A |
|00000330| 4e 41 4d 45 3d 22 74 65 | 78 32 68 74 6d 6c 31 22 |NAME="te|x2html1"|
|00000340| 20 48 52 45 46 3d 22 66 | 6f 6f 74 6e 6f 64 65 5f | HREF="f|ootnode_|
|00000350| 6d 6e 2e 68 74 6d 6c 23 | 66 6f 6f 74 32 31 22 20 |mn.html#|foot21" |
|00000360| 54 41 52 47 45 54 3d 22 | 66 6f 6f 74 65 72 22 3e |TARGET="|footer">|
|00000370| 3c 53 55 50 3e 31 3c 2f | 53 55 50 3e 3c 2f 41 3e |<SUP>1</|SUP></A>|
|00000380| 3c 53 55 50 3e 2c 3c 2f | 53 55 50 3e 3c 41 20 4e |<SUP>,</|SUP><A N|
|00000390| 41 4d 45 3d 22 74 65 78 | 32 68 74 6d 6c 32 22 20 |AME="tex|2html2" |
|000003a0| 48 52 45 46 3d 22 66 6f | 6f 74 6e 6f 64 65 5f 6d |HREF="fo|otnode_m|
|000003b0| 6e 2e 68 74 6d 6c 23 66 | 6f 6f 74 32 33 22 20 54 |n.html#f|oot23" T|
|000003c0| 41 52 47 45 54 3d 22 66 | 6f 6f 74 65 72 22 3e 3c |ARGET="f|ooter"><|
|000003d0| 53 55 50 3e 32 3c 2f 53 | 55 50 3e 3c 2f 41 3e 20 |SUP>2</S|UP></A> |
|000003e0| 69 73 20 73 61 76 65 64 | 20 6f 6e 20 74 68 65 0a |is saved| on the.|
|000003f0| 73 75 70 65 72 76 69 73 | 6f 72 20 73 74 61 63 6b |supervis|or stack|
|00000400| 20 28 53 53 50 29 2c 20 | 61 6e 64 20 74 68 65 6e | (SSP), |and then|
|00000410| 20 74 68 65 20 70 72 6f | 63 65 73 73 6f 72 20 65 | the pro|cessor e|
|00000420| 66 66 65 63 74 69 76 65 | 6c 79 20 6a 75 6d 70 73 |ffective|ly jumps|
|00000430| 0a 69 6e 64 69 72 65 63 | 74 6c 79 20 76 69 61 20 |.indirec|tly via |
|00000440| 61 20 66 69 78 65 64 20 | 6c 6f 63 61 74 69 6f 6e |a fixed |location|
|00000450| 20 69 6e 20 6d 65 6d 6f | 72 79 20 74 6f 20 63 6f | in memo|ry to co|
|00000460| 64 65 20 74 68 61 74 20 | 77 69 6c 6c 20 68 61 6e |de that |will han|
|00000470| 64 6c 65 0a 74 68 61 74 | 20 65 78 63 65 70 74 69 |dle.that| excepti|
|00000480| 6f 6e 2e 20 20 54 68 69 | 73 20 66 69 78 65 64 20 |on. Thi|s fixed |
|00000490| 6c 6f 63 61 74 69 6f 6e | 20 69 73 20 6b 6e 6f 77 |location| is know|
|000004a0| 6e 20 61 73 20 74 68 65 | 20 65 78 63 65 70 74 69 |n as the| excepti|
|000004b0| 6f 6e 20 76 65 63 74 6f | 72 0a 66 6f 72 20 74 68 |on vecto|r.for th|
|000004c0| 61 74 20 70 61 72 74 69 | 63 75 6c 61 72 20 65 78 |at parti|cular ex|
|000004d0| 63 65 70 74 69 6f 6e 2e | 20 45 78 63 65 70 74 69 |ception.| Excepti|
|000004e0| 6f 6e 20 76 65 63 74 6f | 72 73 20 61 72 65 20 6d |on vecto|rs are m|
|000004f0| 65 6d 6f 72 79 20 6c 6f | 63 61 74 69 6f 6e 73 0a |emory lo|cations.|
|00000500| 66 72 6f 6d 20 77 68 69 | 63 68 20 74 68 65 20 70 |from whi|ch the p|
|00000510| 72 6f 63 65 73 73 6f 72 | 20 66 65 74 63 68 65 73 |rocessor| fetches|
|00000520| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 66 20 | the add|ress of |
|00000530| 74 68 65 20 63 6f 64 65 | 20 74 68 61 74 20 77 69 |the code| that wi|
|00000540| 6c 6c 0a 68 61 6e 64 6c | 65 20 74 68 61 74 20 65 |ll.handl|e that e|
|00000550| 78 63 65 70 74 69 6f 6e | 20 77 68 65 6e 20 69 74 |xception| when it|
|00000560| 20 6f 63 63 75 72 73 2e | 20 49 6e 69 74 69 61 6c | occurs.| Initial|
|00000570| 6c 79 2c 20 61 6c 6c 20 | 65 78 63 65 70 74 69 6f |ly, all |exceptio|
|00000580| 6e 20 76 65 63 74 6f 72 | 73 0a 61 72 65 20 69 6e |n vector|s.are in|
|00000590| 69 74 69 61 6c 69 7a 65 | 64 20 62 79 20 54 4f 53 |itialize|d by TOS|
|000005a0| 20 74 6f 20 70 6f 69 6e | 74 20 74 6f 20 68 61 6e | to poin|t to han|
|000005b0| 64 6c 65 72 73 20 66 6f | 72 20 74 68 65 20 65 78 |dlers fo|r the ex|
|000005c0| 63 65 70 74 69 6f 6e 73 | 20 77 69 74 68 69 6e 0a |ceptions| within.|
|000005d0| 54 4f 53 2e 0a 0a 3c 50 | 3e 0a 4e 6f 77 20 73 75 |TOS...<P|>.Now su|
|000005e0| 70 70 6f 73 65 20 6f 6e | 20 61 6e 20 65 78 63 65 |ppose on| an exce|
|000005f0| 70 74 69 6f 6e 2c 20 79 | 6f 75 72 20 70 72 6f 67 |ption, y|our prog|
|00000600| 72 61 6d 20 6e 65 65 64 | 73 20 74 6f 20 67 65 74 |ram need|s to get|
|00000610| 20 63 6f 6e 74 72 6f 6c | 20 28 73 61 79 20 74 6f | control| (say to|
|00000620| 0a 73 65 74 20 61 20 76 | 61 72 69 61 62 6c 65 29 |.set a v|ariable)|
|00000630| 2e 20 41 20 63 6f 6d 6d | 6f 6e 20 70 72 61 63 74 |. A comm|on pract|
|00000640| 69 63 65 20 69 73 20 74 | 6f 20 60 60 68 6f 6f 6b |ice is t|o ``hook|
|00000650| 20 79 6f 75 72 20 63 6f | 64 65 20 69 6e 74 6f 20 | your co|de into |
|00000660| 74 68 65 0a 65 78 63 65 | 70 74 69 6f 6e 20 70 72 |the.exce|ption pr|
|00000670| 6f 63 65 73 73 69 6e 67 | 20 63 68 61 69 6e 27 27 |ocessing| chain''|
|00000680| 2c 20 66 6f 72 20 74 68 | 65 20 70 61 72 74 69 63 |, for th|e partic|
|00000690| 75 6c 61 72 20 65 78 63 | 65 70 74 69 6f 6e 20 74 |ular exc|eption t|
|000006a0| 68 61 74 20 79 6f 75 72 | 0a 70 72 6f 67 72 61 6d |hat your|.program|
|000006b0| 20 69 73 20 69 6e 74 65 | 72 65 73 74 65 64 20 69 | is inte|rested i|
|000006c0| 6e 2e 20 57 68 61 74 20 | 77 65 20 6d 65 61 6e 20 |n. What |we mean |
|000006d0| 62 79 20 60 60 68 6f 6f | 6b 69 6e 67 20 79 6f 75 |by ``hoo|king you|
|000006e0| 72 20 63 6f 64 65 20 69 | 6e 27 27 20 69 73 0a 74 |r code i|n'' is.t|
|000006f0| 68 61 74 20 79 6f 75 20 | 6d 61 6b 65 20 74 68 65 |hat you |make the|
|00000700| 20 65 78 63 65 70 74 69 | 6f 6e 20 76 65 63 74 6f | excepti|on vecto|
|00000710| 72 20 70 6f 69 6e 74 20 | 74 6f 20 79 6f 75 72 20 |r point |to your |
|00000720| 63 6f 64 65 2c 20 77 68 | 69 63 68 20 69 6e 20 74 |code, wh|ich in t|
|00000730| 75 72 6e 73 0a 70 6f 69 | 6e 74 73 20 74 6f 20 77 |urns.poi|nts to w|
|00000740| 68 65 72 65 76 65 72 20 | 74 68 65 20 6f 72 69 67 |herever |the orig|
|00000750| 69 6e 61 6c 20 65 78 63 | 65 70 74 69 6f 6e 20 76 |inal exc|eption v|
|00000760| 65 63 74 6f 72 20 77 61 | 73 20 70 6f 69 6e 74 69 |ector wa|s pointi|
|00000770| 6e 67 20 74 6f 2e 20 57 | 68 65 6e 20 74 68 65 0a |ng to. W|hen the.|
|00000780| 65 78 63 65 70 74 69 6f | 6e 20 6f 63 63 75 72 73 |exceptio|n occurs|
|00000790| 2c 20 79 6f 75 72 20 63 | 6f 64 65 20 69 73 20 67 |, your c|ode is g|
|000007a0| 69 76 65 6e 20 63 6f 6e | 74 72 6f 6c 2c 20 61 6e |iven con|trol, an|
|000007b0| 64 20 6f 6e 63 65 20 69 | 74 20 68 61 73 20 64 6f |d once i|t has do|
|000007c0| 6e 65 20 69 74 73 0a 6a | 6f 62 2c 20 63 6f 6e 74 |ne its.j|ob, cont|
|000007d0| 72 6f 6c 20 70 61 73 73 | 65 73 20 74 6f 20 6f 74 |rol pass|es to ot|
|000007e0| 68 65 72 20 65 78 63 65 | 70 74 69 6f 6e 20 68 61 |her exce|ption ha|
|000007f0| 6e 64 6c 65 72 73 20 69 | 6e 20 74 68 65 20 63 68 |ndlers i|n the ch|
|00000800| 61 69 6e 2e 20 54 68 65 | 20 6c 61 73 74 0a 68 61 |ain. The| last.ha|
|00000810| 6e 64 6c 65 72 20 69 6e | 20 74 68 69 73 20 63 68 |ndler in| this ch|
|00000820| 61 69 6e 20 28 75 73 75 | 61 6c 6c 79 20 74 68 65 |ain (usu|ally the|
|00000830| 20 6f 6e 65 20 69 6e 73 | 74 61 6c 6c 65 64 20 74 | one ins|talled t|
|00000840| 68 65 72 65 20 69 6e 69 | 74 69 61 6c 6c 79 20 62 |here ini|tially b|
|00000850| 79 0a 54 4f 53 29 2c 20 | 66 69 6e 69 73 68 65 73 |y.TOS), |finishes|
|00000860| 20 6f 66 66 20 74 68 65 | 20 65 78 63 65 70 74 69 | off the| excepti|
|00000870| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 20 73 65 71 75 |on handl|ing sequ|
|00000880| 65 6e 63 65 20 62 79 20 | 65 78 65 63 75 74 69 6e |ence by |executin|
|00000890| 67 20 61 20 52 54 45 0a | 69 6e 73 74 72 75 63 74 |g a RTE.|instruct|
|000008a0| 69 6f 6e 2c 20 77 68 69 | 63 68 20 72 65 73 74 6f |ion, whi|ch resto|
|000008b0| 72 65 73 20 74 68 65 20 | 70 72 6f 63 65 73 73 6f |res the |processo|
|000008c0| 72 20 74 6f 20 74 68 65 | 20 73 74 61 74 65 20 69 |r to the| state i|
|000008d0| 6e 20 77 68 69 63 68 20 | 69 74 20 77 61 73 20 62 |n which |it was b|
|000008e0| 65 66 6f 72 65 0a 74 68 | 65 20 65 78 63 65 70 74 |efore.th|e except|
|000008f0| 69 6f 6e 20 6f 63 63 75 | 72 72 65 64 2e 20 46 69 |ion occu|rred. Fi|
|00000900| 67 75 72 65 26 6e 62 73 | 70 3b 3c 41 20 48 52 45 |gure&nbs|p;<A HRE|
|00000910| 46 3d 22 6e 6f 64 65 33 | 5f 63 74 2e 68 74 6d 6c |F="node3|_ct.html|
|00000920| 23 66 69 67 3a 68 6f 6f | 6b 69 6e 67 22 3e 3c 49 |#fig:hoo|king"><I|
|00000930| 4d 47 20 20 41 4c 54 3d | 22 5b 2a 5d 22 20 53 52 |MG ALT=|"[*]" SR|
|00000940| 43 3d 22 63 72 6f 73 73 | 72 65 66 2e 70 6e 67 22 |C="cross|ref.png"|
|00000950| 3e 3c 2f 41 3e 20 64 65 | 70 69 63 74 73 20 77 68 |></A> de|picts wh|
|00000960| 61 74 0a 68 61 70 70 65 | 6e 73 20 77 68 65 6e 20 |at.happe|ns when |
|00000970| 79 6f 75 20 60 60 68 6f | 6f 6b 20 69 6e 20 79 6f |you ``ho|ok in yo|
|00000980| 75 72 20 63 6f 64 65 27 | 27 2e 0a 0a 3c 50 3e 0a |ur code'|'...<P>.|
|00000990| 0a 3c 44 49 56 20 63 6c | 61 73 73 3d 22 43 45 4e |.<DIV cl|ass="CEN|
|000009a0| 54 45 52 22 3e 3c 41 20 | 49 44 3d 22 66 69 67 3a |TER"><A |ID="fig:|
|000009b0| 68 6f 6f 6b 69 6e 67 22 | 3e 3c 2f 41 3e 3c 41 20 |hooking"|></A><A |
|000009c0| 49 44 3d 22 35 37 22 3e | 3c 2f 41 3e 0a 3c 54 41 |ID="57">|</A>.<TA|
|000009d0| 42 4c 45 3e 0a 3c 43 41 | 50 54 49 4f 4e 20 63 6c |BLE>.<CA|PTION cl|
|000009e0| 61 73 73 3d 22 42 4f 54 | 54 4f 4d 22 3e 3c 53 54 |ass="BOT|TOM"><ST|
|000009f0| 52 4f 4e 47 3e 46 69 67 | 75 72 65 3a 3c 2f 53 54 |RONG>Fig|ure:</ST|
|00000a00| 52 4f 4e 47 3e 0a 48 6f | 6f 6b 69 6e 67 20 69 6e |RONG>.Ho|oking in|
|00000a10| 74 6f 20 61 6e 20 45 78 | 63 65 70 74 69 6f 6e 20 |to an Ex|ception |
|00000a20| 56 65 63 74 6f 72 3c 2f | 43 41 50 54 49 4f 4e 3e |Vector</|CAPTION>|
|00000a30| 0a 3c 54 52 3e 3c 54 44 | 3e 3c 49 4d 47 0a 20 53 |.<TR><TD|><IMG. S|
|00000a40| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 36 |TYLE="he|ight: 26|
|00000a50| 31 2e 36 36 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |1.66ex; |" SRC="i|
|00000a60| 6d 67 31 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg1.png"|. ALT="\|
|00000a70| 62 65 67 69 6e 7b 66 69 | 67 75 72 65 7d 5c 62 65 |begin{fi|gure}\be|
|00000a80| 67 69 6e 7b 63 65 6e 74 | 65 72 7d 0a 7b 5c 73 6d |gin{cent|er}.{\sm|
|00000a90| 61 6c 6c 0a 5c 73 65 74 | 6c 65 6e 67 74 68 7b 5c |all.\set|length{\|
|00000aa0| 75 6e 69 74 6c 65 6e 67 | 74 68 7d 7b 30 2e 30 31 |unitleng|th}{0.01|
|00000ab0| 32 35 69 6e 7d 25 0a 5c | 62 65 67 69 6e 7b 2e 2e |25in}%.\|begin{..|
|00000ac0| 2e 0a 2e 2e 2e 5b 30 70 | 74 5d 7b 5c 65 6c 76 72 |.....[0p|t]{\elvr|
|00000ad0| 6d 20 41 66 74 65 72 20 | 68 6f 6f 6b 69 6e 67 20 |m After |hooking |
|00000ae0| 69 6e 20 4d 79 43 6f 64 | 65 7d 7d 7d 0a 5c 65 6e |in MyCod|e}}}.\en|
|00000af0| 64 7b 70 69 63 74 75 72 | 65 7d 7d 5c 65 6e 64 7b |d{pictur|e}}\end{|
|00000b00| 63 65 6e 74 65 72 7d 5c | 65 6e 64 7b 66 69 67 75 |center}\|end{figu|
|00000b10| 72 65 7d 22 3e 3c 2f 54 | 44 3e 3c 2f 54 52 3e 0a |re}"></T|D></TR>.|
|00000b20| 3c 2f 54 41 42 4c 45 3e | 0a 3c 2f 44 49 56 3e 0a |</TABLE>|.</DIV>.|
|00000b30| 0a 3c 50 3e 0a 49 74 20 | 69 73 20 62 61 64 20 3c |.<P>.It |is bad <|
|00000b40| 49 3e 6b 61 72 6d 61 3c | 2f 49 3e 20 6e 6f 74 20 |I>karma<|/I> not |
|00000b50| 74 6f 20 70 61 73 73 20 | 61 20 63 6f 6e 74 72 6f |to pass |a contro|
|00000b60| 6c 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 65 78 |l to the| next ex|
|00000b70| 63 65 70 74 69 6f 6e 0a | 68 61 6e 64 6c 65 72 20 |ception.|handler |
|00000b80| 69 6e 20 74 68 65 20 63 | 68 61 69 6e 2e 20 45 76 |in the c|hain. Ev|
|00000b90| 65 6e 20 69 66 20 79 6f | 75 72 20 63 6f 64 65 20 |en if yo|ur code |
|00000ba0| 63 61 6e 20 63 6f 6d 70 | 6c 65 74 65 6c 79 20 68 |can comp|letely h|
|00000bb0| 61 6e 64 6c 65 20 61 6e | 0a 65 78 63 65 70 74 69 |andle an|.excepti|
|00000bc0| 6f 6e 2c 20 69 74 20 64 | 65 6e 69 65 73 20 6f 74 |on, it d|enies ot|
|00000bd0| 68 65 72 20 68 61 6e 64 | 6c 65 72 73 20 74 68 65 |her hand|lers the|
|00000be0| 20 6f 70 70 6f 72 74 75 | 6e 69 74 79 20 74 6f 20 | opportu|nity to |
|00000bf0| 64 6f 20 77 68 61 74 20 | 74 68 65 79 0a 73 75 70 |do what |they.sup|
|00000c00| 70 6f 73 65 64 20 74 6f | 20 64 6f 2e 20 4f 66 20 |posed to| do. Of |
|00000c10| 63 6f 75 72 73 65 2c 20 | 74 68 65 72 65 20 61 72 |course, |there ar|
|00000c20| 65 20 73 69 74 75 61 74 | 69 6f 6e 73 20 77 68 65 |e situat|ions whe|
|00000c30| 72 65 0a 70 61 73 73 69 | 6e 67 20 63 6f 6e 74 72 |re.passi|ng contr|
|00000c40| 6f 6c 20 74 6f 20 6f 74 | 68 65 72 20 68 61 6e 64 |ol to ot|her hand|
|00000c50| 6c 65 72 73 20 69 73 20 | 6e 6f 74 20 61 70 70 72 |lers is |not appr|
|00000c60| 6f 70 72 69 61 74 65 20 | 28 66 6f 72 20 69 6e 73 |opriate |(for ins|
|00000c70| 74 61 6e 63 65 20 69 66 | 0a 79 6f 75 20 61 72 65 |tance if|.you are|
|00000c80| 20 69 6e 74 65 72 63 65 | 70 74 69 6e 67 20 61 20 | interce|pting a |
|00000c90| 70 61 72 74 69 63 75 6c | 61 72 20 67 65 6d 64 6f |particul|ar gemdo|
|00000ca0| 73 20 66 75 6e 63 74 69 | 6f 6e 0a 69 6e 20 6f 72 |s functi|on.in or|
|00000cb0| 64 65 72 20 74 6f 20 72 | 65 70 6c 61 63 65 20 69 |der to r|eplace i|
|00000cc0| 74 20 74 6f 74 61 6c 6c | 79 3b 20 69 6e 20 6d 6f |t totall|y; in mo|
|00000cd0| 73 74 20 6f 74 68 65 72 | 0a 63 61 73 65 73 20 79 |st other|.cases y|
|00000ce0| 6f 75 20 70 61 73 73 69 | 6e 67 20 63 6f 6e 74 72 |ou passi|ng contr|
|00000cf0| 6f 6c 20 6f 6e 20 74 6f | 20 74 68 65 20 6e 65 78 |ol on to| the nex|
|00000d00| 74 20 68 61 6e 64 6c 65 | 72 20 69 73 20 74 68 65 |t handle|r is the|
|00000d10| 20 74 68 69 6e 67 20 74 | 6f 20 64 6f 29 2e 0a 0a | thing t|o do)...|
|00000d20| 3c 50 3e 0a 57 68 65 6e | 20 79 6f 75 20 69 6e 73 |<P>.When| you ins|
|00000d30| 74 61 6c 6c 20 61 20 68 | 61 6e 64 6c 65 72 2c 20 |tall a h|andler, |
|00000d40| 62 79 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 20 79 6f |by conve|ntion yo|
|00000d50| 75 20 69 6e 73 74 61 6c | 6c 20 69 74 20 61 74 20 |u instal|l it at |
|00000d60| 74 68 65 20 68 65 61 64 | 0a 6f 66 20 74 68 65 20 |the head|.of the |
|00000d70| 65 78 63 65 70 74 69 6f | 6e 20 63 68 61 69 6e 2e |exceptio|n chain.|
|00000d80| 20 42 75 74 20 79 6f 75 | 20 63 61 6e 6e 6f 74 20 | But you| cannot |
|00000d90| 61 73 73 75 6d 65 20 74 | 68 61 74 20 79 6f 75 72 |assume t|hat your|
|00000da0| 20 68 61 6e 64 6c 65 72 | 20 77 69 6c 6c 0a 61 6c | handler| will.al|
|00000db0| 77 61 79 73 20 72 65 6d | 61 69 6e 20 74 68 65 72 |ways rem|ain ther|
|00000dc0| 65 2e 20 4f 74 68 65 72 | 20 70 72 6f 63 65 73 73 |e. Other| process|
|00000dd0| 65 73 20 63 61 6e 20 65 | 78 65 63 75 74 65 20 6c |es can e|xecute l|
|00000de0| 61 74 65 72 20 61 6e 64 | 20 6d 61 79 20 69 6e 73 |ater and| may ins|
|00000df0| 65 72 74 0a 74 68 65 69 | 72 20 6f 77 6e 20 65 78 |ert.thei|r own ex|
|00000e00| 63 65 70 74 69 6f 6e 20 | 68 61 6e 64 6c 65 72 73 |ception |handlers|
|00000e10| 2e 20 57 68 65 6e 20 69 | 74 20 63 6f 6d 65 73 20 |. When i|t comes |
|00000e20| 74 69 6d 65 20 74 6f 20 | 75 6e 68 6f 6f 6b 0a 66 |time to |unhook.f|
|00000e30| 69 72 73 74 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |irst you| need to|
|00000e40| 20 66 69 6e 64 20 79 6f | 75 72 73 65 6c 66 2e 20 | find yo|urself. |
|00000e50| 54 68 69 73 20 69 73 20 | 77 68 65 72 65 0a 58 42 |This is |where.XB|
|00000e60| 52 41 20 63 6f 6d 65 73 | 20 69 6e 74 6f 20 69 74 |RA comes| into it|
|00000e70| 73 20 6f 77 6e 2e 20 49 | 66 20 74 68 65 20 65 78 |s own. I|f the ex|
|00000e80| 63 65 70 74 69 6f 6e 20 | 76 65 63 74 6f 72 20 28 |ception |vector (|
|00000e90| 74 68 65 20 68 65 61 64 | 20 6f 66 20 74 68 65 0a |the head| of the.|
|00000ea0| 63 68 61 69 6e 29 20 64 | 6f 65 73 20 6e 6f 74 20 |chain) d|oes not |
|00000eb0| 70 6f 69 6e 74 20 74 6f | 20 79 6f 75 72 20 68 61 |point to| your ha|
|00000ec0| 6e 64 6c 65 72 20 74 68 | 65 72 65 20 69 73 20 6e |ndler th|ere is n|
|00000ed0| 6f 20 77 61 79 20 79 6f | 75 20 63 61 6e 20 66 69 |o way yo|u can fi|
|00000ee0| 6e 64 20 69 74 2c 0a 75 | 6e 6c 65 73 73 20 61 6c |nd it,.u|nless al|
|00000ef0| 6c 20 68 61 6e 64 6c 65 | 72 73 20 62 65 74 77 65 |l handle|rs betwe|
|00000f00| 65 6e 20 74 68 65 20 68 | 65 61 64 20 61 6e 64 20 |en the h|ead and |
|00000f10| 79 6f 75 20 66 6f 6c 6c | 6f 77 20 61 20 63 6f 6d |you foll|ow a com|
|00000f20| 6d 6f 6e 0a 63 6f 6e 76 | 65 6e 74 69 6f 6e 73 20 |mon.conv|entions |
|00000f30| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 74 68 65 20 |to ident|ify the |
|00000f40| 68 61 6e 64 6c 65 72 20 | 61 6e 64 20 74 6f 20 66 |handler |and to f|
|00000f50| 69 6e 64 20 74 68 65 20 | 70 6f 69 6e 74 65 72 20 |ind the |pointer |
|00000f60| 74 6f 0a 74 68 65 20 6e | 65 78 74 20 65 6c 65 6d |to.the n|ext elem|
|00000f70| 65 6e 74 20 6f 66 20 74 | 68 69 73 20 63 68 61 69 |ent of t|his chai|
|00000f80| 6e 2e 20 54 68 65 0a 58 | 42 52 41 20 70 72 6f 74 |n. The.X|BRA prot|
|00000f90| 6f 63 6f 6c 20 73 70 65 | 63 69 66 69 65 73 20 77 |ocol spe|cifies w|
|00000fa0| 68 65 72 65 20 74 6f 20 | 66 69 6e 64 2c 20 72 65 |here to |find, re|
|00000fb0| 6c 61 74 69 76 65 20 74 | 6f 20 74 68 65 20 62 65 |lative t|o the be|
|00000fc0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 68 61 6e |ginning |of a han|
|00000fd0| 64 6c 65 72 2c 0a 74 68 | 65 20 6e 65 78 74 20 68 |dler,.th|e next h|
|00000fe0| 61 6e 64 6c 65 72 20 61 | 64 64 72 65 73 73 2e 20 |andler a|ddress. |
|00000ff0| 54 6f 20 61 76 6f 69 64 | 20 73 70 75 72 69 6f 75 |To avoid| spuriou|
|00001000| 73 20 69 64 65 6e 74 69 | 66 69 63 61 74 69 6f 6e |s identi|fication|
|00001010| 0a 74 68 65 20 58 42 52 | 41 20 70 72 6f 74 6f 63 |.the XBR|A protoc|
|00001020| 6f 6c 20 66 75 72 74 68 | 65 72 20 64 65 66 69 6e |ol furth|er defin|
|00001030| 65 73 20 74 77 6f 20 6d | 61 67 69 63 20 6e 75 6d |es two m|agic num|
|00001040| 62 65 72 73 2c 20 61 67 | 61 69 6e 20 61 74 20 66 |bers, ag|ain at f|
|00001050| 69 78 65 64 0a 6f 66 66 | 73 65 74 73 20 72 65 6c |ixed.off|sets rel|
|00001060| 61 74 69 76 65 20 74 6f | 20 74 68 65 20 68 61 6e |ative to| the han|
|00001070| 64 6c 65 72 2e 20 20 4e | 6f 77 20 75 6e 63 68 61 |dler. N|ow uncha|
|00001080| 69 6e 69 6e 67 20 79 6f | 75 72 73 65 6c 66 20 62 |ining yo|urself b|
|00001090| 65 63 6f 6d 65 73 20 65 | 61 73 79 0a 61 6e 64 20 |ecomes e|asy.and |
|000010a0| 72 65 6c 69 61 62 6c 65 | 2e 20 59 6f 75 20 65 69 |reliable|. You ei|
|000010b0| 74 68 65 72 20 65 6e 63 | 6f 75 6e 74 65 72 65 64 |ther enc|ountered|
|000010c0| 20 79 6f 75 72 73 65 6c | 66 2c 20 6f 72 20 79 6f | yoursel|f, or yo|
|000010d0| 75 20 63 6f 6e 74 69 6e | 75 65 0a 64 6f 77 6e 20 |u contin|ue.down |
|000010e0| 74 68 65 20 63 68 61 69 | 6e 20 62 79 20 70 69 63 |the chai|n by pic|
|000010f0| 6b 69 6e 67 20 75 70 20 | 74 68 65 20 61 64 64 72 |king up |the addr|
|00001100| 65 73 73 20 6f 66 20 74 | 68 65 20 6e 65 78 74 20 |ess of t|he next |
|00001110| 68 61 6e 64 6c 65 72 20 | 66 72 6f 6d 20 61 0a 66 |handler |from a.f|
|00001120| 69 78 65 64 20 6f 66 66 | 73 65 74 20 69 6e 20 74 |ixed off|set in t|
|00001130| 68 65 20 63 75 72 72 65 | 6e 74 20 68 61 6e 64 6c |he curre|nt handl|
|00001140| 65 72 2e 20 20 4f 6e 63 | 65 20 79 6f 75 20 68 61 |er. Onc|e you ha|
|00001150| 76 65 20 66 6f 75 6e 64 | 20 79 6f 75 72 73 65 6c |ve found| yoursel|
|00001160| 66 0a 79 6f 75 20 63 68 | 65 63 6b 20 74 68 65 20 |f.you ch|eck the |
|00001170| 74 77 6f 20 6d 61 67 69 | 63 20 6e 75 6d 62 65 72 |two magi|c number|
|00001180| 73 2c 20 61 67 61 69 6e | 20 61 74 20 66 69 78 65 |s, again| at fixe|
|00001190| 64 20 6f 66 66 73 65 74 | 73 2c 20 74 6f 20 65 6e |d offset|s, to en|
|000011a0| 73 75 72 65 0a 74 68 61 | 74 20 79 6f 75 20 61 63 |sure.tha|t you ac|
|000011b0| 74 75 61 6c 6c 79 20 68 | 69 74 20 61 6e 20 58 42 |tually h|it an XB|
|000011c0| 52 41 20 68 65 61 64 65 | 72 20 72 61 74 68 65 72 |RA heade|r rather|
|000011d0| 20 74 68 61 6e 20 73 6f | 6d 65 20 72 61 6e 64 6f | than so|me rando|
|000011e0| 6d 20 6d 65 6d 6f 72 79 | 0a 6c 6f 63 61 74 69 6f |m memory|.locatio|
|000011f0| 6e 20 74 68 61 74 20 6a | 75 73 74 20 68 61 70 70 |n that j|ust happ|
|00001200| 65 6e 73 20 74 6f 20 68 | 61 76 65 20 74 68 65 20 |ens to h|ave the |
|00001210| 76 61 6c 75 65 20 74 68 | 61 74 20 79 6f 75 20 61 |value th|at you a|
|00001220| 72 65 20 6c 6f 6f 6b 69 | 6e 67 0a 66 6f 72 2e 20 |re looki|ng.for. |
|00001230| 49 66 20 69 74 20 61 6c | 6c 20 63 68 65 63 6b 73 |If it al|l checks|
|00001240| 20 6f 75 74 2c 20 79 6f | 75 20 63 61 6e 20 72 65 | out, yo|u can re|
|00001250| 6d 6f 76 65 20 79 6f 75 | 72 73 65 6c 66 20 72 65 |move you|rself re|
|00001260| 6c 69 61 62 6c 79 2e 0a | 46 69 67 75 72 65 26 6e |liably..|Figure&n|
|00001270| 62 73 70 3b 3c 41 20 48 | 52 45 46 3d 22 6e 6f 64 |bsp;<A H|REF="nod|
|00001280| 65 33 5f 63 74 2e 68 74 | 6d 6c 23 66 69 67 3a 78 |e3_ct.ht|ml#fig:x|
|00001290| 62 72 61 63 68 61 69 6e | 22 3e 3c 49 4d 47 20 20 |brachain|"><IMG |
|000012a0| 41 4c 54 3d 22 5b 2a 5d | 22 20 53 52 43 3d 22 63 |ALT="[*]|" SRC="c|
|000012b0| 72 6f 73 73 72 65 66 2e | 70 6e 67 22 3e 3c 2f 41 |rossref.|png"></A|
|000012c0| 3e 20 69 6c 6c 75 73 74 | 72 61 74 65 73 20 61 20 |> illust|rates a |
|000012d0| 74 79 70 69 63 61 6c 20 | 58 42 52 41 20 65 78 63 |typical |XBRA exc|
|000012e0| 65 70 74 69 6f 6e 20 63 | 68 61 69 6e 2e 0a 0a 3c |eption c|hain...<|
|000012f0| 50 3e 0a 0a 3c 44 49 56 | 20 63 6c 61 73 73 3d 22 |P>..<DIV| class="|
|00001300| 43 45 4e 54 45 52 22 3e | 3c 41 20 49 44 3d 22 66 |CENTER">|<A ID="f|
|00001310| 69 67 3a 78 62 72 61 63 | 68 61 69 6e 22 3e 3c 2f |ig:xbrac|hain"></|
|00001320| 41 3e 3c 41 20 49 44 3d | 22 31 30 33 22 3e 3c 2f |A><A ID=|"103"></|
|00001330| 41 3e 0a 3c 54 41 42 4c | 45 3e 0a 3c 43 41 50 54 |A>.<TABL|E>.<CAPT|
|00001340| 49 4f 4e 20 63 6c 61 73 | 73 3d 22 42 4f 54 54 4f |ION clas|s="BOTTO|
|00001350| 4d 22 3e 3c 53 54 52 4f | 4e 47 3e 46 69 67 75 72 |M"><STRO|NG>Figur|
|00001360| 65 3a 3c 2f 53 54 52 4f | 4e 47 3e 0a 41 6e 20 58 |e:</STRO|NG>.An X|
|00001370| 42 52 41 20 45 78 63 65 | 70 74 69 6f 6e 20 43 68 |BRA Exce|ption Ch|
|00001380| 61 69 6e 3c 2f 43 41 50 | 54 49 4f 4e 3e 0a 3c 54 |ain</CAP|TION>.<T|
|00001390| 52 3e 3c 54 44 3e 3c 49 | 4d 47 0a 20 53 54 59 4c |R><TD><I|MG. STYL|
|000013a0| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 36 31 2e 36 |E="heigh|t: 261.6|
|000013b0| 36 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 32 |6ex; " S|RC="img2|
|000013c0| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|000013d0| 69 6e 7b 66 69 67 75 72 | 65 7d 5c 62 65 67 69 6e |in{figur|e}\begin|
|000013e0| 7b 63 65 6e 74 65 72 7d | 0a 7b 5c 73 6d 61 6c 6c |{center}|.{\small|
|000013f0| 0a 5c 73 65 74 6c 65 6e | 67 74 68 7b 5c 75 6e 69 |.\setlen|gth{\uni|
|00001400| 74 6c 65 6e 67 74 68 7d | 7b 30 2e 30 31 32 35 69 |tlength}|{0.0125i|
|00001410| 6e 7d 25 0a 5c 62 65 67 | 69 6e 7b 2e 2e 2e 0a 2e |n}%.\beg|in{.....|
|00001420| 2e 2e 65 62 6f 78 7b 30 | 70 74 7d 5b 30 70 74 5d |..ebox{0|pt}[0pt]|
|00001430| 5b 30 70 74 5d 7b 5c 65 | 6c 76 72 6d 20 43 6f 64 |[0pt]{\e|lvrm Cod|
|00001440| 65 20 41 64 64 72 7d 7d | 7d 0a 5c 65 6e 64 7b 70 |e Addr}}|}.\end{p|
|00001450| 69 63 74 75 72 65 7d 7d | 5c 65 6e 64 7b 63 65 6e |icture}}|\end{cen|
|00001460| 74 65 72 7d 5c 65 6e 64 | 7b 66 69 67 75 72 65 7d |ter}\end|{figure}|
|00001470| 22 3e 3c 2f 54 44 3e 3c | 2f 54 52 3e 0a 3c 2f 54 |"></TD><|/TR>.</T|
|00001480| 41 42 4c 45 3e 0a 3c 2f | 44 49 56 3e 0a 0a 3c 50 |ABLE>.</|DIV>..<P|
|00001490| 3e 0a 0a 3c 50 3e 0a 0a | 3c 48 52 3e 0a 0a 3c 2f |>..<P>..|<HR>..</|
|000014a0| 42 4f 44 59 3e 0a 3c 2f | 48 54 4d 4c 3e 0a |BODY>.</|HTML>. |
+--------+-------------------------+-------------------------+--------+--------+